package org.snare.alumni.modules.admin.reservation.service.api;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.snare.alumni.modules.admin.reservation.entity.ReservationEntity;
import org.snare.spider.common.base.Limit;
import org.snare.spider.service.annotation.ApiGet;
import org.snare.spider.service.annotation.ApiPost;
import org.snare.spider.service.annotation.ApiService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;


@ApiService(mapping = "/alumni/reservation", desc = "系统管理-返校预约")
public interface ReservationService {

    @ApiGet(mapping = {"/page"}, desc = "分页")
    IPage<ReservationEntity> page(ReservationEntity params, Limit limit);

    @ApiPost(mapping = {"/add"}, desc = "新增")
    void add(@RequestBody ReservationEntity params);

    @ApiGet(mapping = {"/delete"}, desc = "删除")
    void delete(@RequestParam String id);

    @ApiPost(mapping = {"/approve"}, desc = "审批")
    void approve(@RequestBody Map<String, String> params);

    @ApiPost(mapping = {"/cancel"}, desc = "取消")
    void cancel(@RequestBody Map<String, String> params);

}
